package com.hanserwei.community.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hanserwei.community.entity.po.Building;
import com.hanserwei.community.entity.request.building.BuildingAddRequest;
import com.hanserwei.community.entity.request.building.BuildingQueryRequest;

public interface BuildingService extends IService<Building> {


    Page<Building> queryBuildingByPage(BuildingQueryRequest request);

    QueryWrapper<Building> getQueryWrapper(BuildingQueryRequest request);

    Page<Building> listByPage(Integer currentNumber, Integer pageSize);

    boolean addBuilding(BuildingAddRequest request);

    boolean updateBuilding(BuildingAddRequest request, Integer id);
}
